package com.gszy.auth.mvc;

import java.util.HashMap;
import java.util.Map;

/**
 * @author MeUChT
 */
public class ModelAndView {

    private String path;

    private Map<String,Object> model;

    public ModelAndView(){
        model = new HashMap<>();
    }
    public ModelAndView add(String key, Object value){

        model.put(key,value);
        return this;
    }
    public String getPath(){
        return path;
    }
    public ModelAndView setPath(String path){
        this.path = path;
        return this;
    }

    public Map<String, Object> getModel() {
        return model;
    }
}
